<?php

abstract class Vnf_Controller_Action extends Zend_Controller_Action
{

    //protected $layoutPath = BASE_DIR . '/layouts/user/';
//    protected $layout = 'index';

    /**
     * Set layout
     *
     * @param $layout
     * @param $layoutPath
     */
    public function setLayout($layout = 'index', $layoutPath = null) {

        $layoutPath = $layoutPath == null? BASE_DIR . '/layouts/' . CURR_APP_PATH . '/':$layoutPath;
        Zend_Layout::startMvc(array(
            'layoutPath' => $layoutPath,
            'layout' => $layout
        ));
    }
}